package top.revery.api.advice;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <h1> ---  --- </h1>
 * Created by  revery.top jun
 * Date  2019-12-13 12:05
 */
@Data
@NoArgsConstructor
public class BaseException extends RuntimeException{
    private int status;

    public BaseException(String message, int status) {
        super(message);
        this.status = status;
    }

    public BaseException(String message) {
        super(message);
    }

    public BaseException(String message, Throwable cause) {
        super(message, cause);
    }

    public BaseException(Throwable cause) {
        super(cause);
    }

    public BaseException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
